package com.zygh.dlqwservice.module.service.impl;

import com.zygh.dlqwservice.common.pcdomain.ResponseDTO;
import com.zygh.dlqwservice.module.entity.Meun;
import com.zygh.dlqwservice.module.mapper.MeunMapper;
import com.zygh.dlqwservice.module.service.IMeunService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zygh.dlqwservice.util.SmartBeanUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lee
 * @since 2020-12-24
 */
@Service
public class MeunServiceImpl extends ServiceImpl<MeunMapper, Meun> implements IMeunService {
    @Autowired
    private MeunMapper meunMapper;

    @Override
    public ResponseDTO<List<Meun>> selectAll() {
        List<Meun> meuns = meunMapper.selectAll();
        return ResponseDTO.succData(meuns);
    }
}
